package com.example.myapplicationndk.bean;

import java.util.List;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

public class MyViewModel extends ViewModel {


    private MutableLiveData<List<Student>> students;

    public LiveData<List<Student>> getUsers() {
        if (students == null) {
            students = new MutableLiveData<List<Student>>();
            loadUsers();
        }
        return students;
    }

    private void loadUsers() {
        // Do an asynchronous operation to fetch users.
       
    }
}